﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Domotica.Gazing.Calibration
{
    internal class DoneProcessor : Processor
    {
        public DoneProcessor(Calibrator calibrator) 
            : base(calibrator, CalibrationState.Smoothing)
        {
        }

        protected override ProcessList Initialize()
        {
            ProcessList l = new ProcessList();

            CalibratorScreen primary = Calibrator.ScreenList.GetPrimary();
            l.Add(new ProcessSetForm(primary.GetCenter(this.Calibrator.FormGetSize())));
            l.Add(new ProcessSetFormTopText("Calibration Finished"));
            l.Add(new ProcessSetFormMiddleText("Done"));
            l.Add(new ProcessWait(2000));
            l.Add(new ProcessCursorShow(false));
            l.Add(new ProcessSetFormBottomText("Done"));

            return l;
        }
    }
}
